{include file="kuerp/common/menu" /}
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="table_box">
        <div class="list">
            <table id="account_table">
                <tr>
                    <th></th><th>支出类别</th><th>金额</th><th>备注</th>
                </tr>
                <tr style="display: none;">
                    <td><div class="btn"><span class="add"><i class="fa fa-plus"></i></span><span class="del"><i class="fa fa-trash"></i></span></div></td>
                    <td>
                        <select name="row[expend_type_id][]" class="form-control accounts_id">
                            <option value=""></option>
                            {foreach name="incomeType" item="vo"}
                            <option value="{$vo.id}">{$vo.name}</option>
                            {/foreach}
                        </select>
                    </td>
                    <td><input type="number" name="row[money][]" class="account_money number_decimal"></td>
                    <td><input type="text" name="row[remark][]" class="remark"></td>
                </tr>
                {php}for($a=1;$a<=4;$a++){{/php}
                <tr>
                    <td><div class="btn"><span class="add"><i class="fa fa-plus"></i></span><span class="del"><i class="fa fa-trash"></i></span></div></td>
                    <td>
                        <select name="row[expend_type_id][]" class="form-control accounts_id">
                            <option value=""></option>
                            {foreach name="incomeType" item="vo"}
                            <option value="{$vo.id}">{$vo.name}</option>
                            {/foreach}
                        </select>
                    </td>
                    <td><input type="number" name="row[money][]" class="account_money number_decimal"></td>
                    <td><input type="text" name="row[remark][]" class="remark"></td>
                </tr>
                {php}}{/php}
            </table>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="button" class="btn btn-success btn-embossed surebtn">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
